#!/usr/bin/env python3

import sys
import json
import mrget

if len(sys.argv) > 1:
    mirror_name = sys.argv[1]
else:
    mirror_name = None

mrget.MemoryCache().update()
data = mrget.MemoryCache().dump(mirror_name)
print(json.dumps(data, indent=4))
